import { createApp } from 'vue'
import App from './App.vue'
import pinia from './stores'
const app = createApp(App)
app.use(pinia) //使用pinia配置
import httpRequest from './http'
import CreateWebSocket from './websocket/websocket.js'
app.config.globalProperties.$http = httpRequest//将httpRequest挂载到app的实例上
app.config.globalProperties.$websocket = new CreateWebSocket(()=>{
    console.log('websocket连接成功')
})//将CreateWebSocket挂载到app的实例上
app.mount('#app')



